package cn.afterturn.easypoi.word.parse.Algorithm;

import cn.afterturn.easypoi.word.parse.ParseWord07BookMark;
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import org.apache.poi.xwpf.usermodel.XWPFRun;

import java.util.List;
import java.util.Map;

public class ParagraphAllBookMarkValueColor extends easypoiParsealgo {
    @Override
    protected void changeValues(XWPFParagraph paragraph, XWPFRun currentRun, String currentText, List<Integer> runIndex, Map<String, Object> map, String color) throws Exception{
        //根据输入的颜色进行替换bookvalue
        new ParseWord07BookMark().changeValues(paragraph, currentRun,  currentText, runIndex, map, color);
    }
}
